#!/bin/bash

mkdir dimacs;
mkdir rand;

for G in brock400_2 brock400_4 san200_0.9_3 san400_0.5_1 C125.9 brock200_2 brock200_4 c-fat500-1 c-fat500-2 keller4 san200_0.7_2 p_hat300-2 C250.9 p_hat300-3 san200_0.7_2 
do
	mkdir dimacs/${G};
	for K in 0 1 3 5 8 10 12
	do
		echo "mv dimacsK=${K}/${G} dimacs/${G}/${G}.K${K}"
		mv dimacsK=${K}/${G} dimacs/${G}/${G}.K${K}
	done
done

for SIZE in 100 150 200 300
do
	for PROB in 70 80 90
	do
		mkdir rand/${SIZE}_${PROB};
		for K in 0 1 3 5 8 10 12
		do
			for G in 1 2 3 4 5
			do
				echo "mv randK=${K}/${SIZE}_${PROB}/g${G} rand/${SIZE}_${PROB}/g${G}.K${K}"
				mv randK=${K}/${SIZE}_${PROB}/g${G} rand/${SIZE}_${PROB}/g${G}.K${K}
			done
		done
	done
done
